import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './component/userlogin'
import workflow from './component/workflow'
import list from './component/list'
import register from './component/RegistrationForm'
import { Router, Route, hashHistory } from 'react-router';
import toadd from './reducer/toapp.js'
import { Steps } from 'antd';
const Step = Steps.Step;
 
let store = createStore(toadd)
 
//   <App  onAddClick={text =>store.dispatch({type:1,text})}  oncount={index=>store.dispatch({type:2,index})} />
let rootElement = document.getElementById('root')
render(
     
 <Provider store={store}>
				<Router  history={hashHistory} >
                    <Route path="/" component={App} />
                    <Route path="main" component={workflow}/>
                    <Route path="register" component={register}/>
                    <Route path="list" component={list}/>
                 </Router>
			</Provider>,
     rootElement
)